package com.xbongbong.paas.pojo;

import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.paas.field.MultiUnitItemPoJo;
import com.xbongbong.saas.domain.entity.ProductUnitPriceEntity;
import com.xbongbong.saas.domain.entity.ext.ContractSubDataExt;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;
import java.util.Map;

@Getter
@Setter
@ToString
public class FieldAttrEntityForImport extends FieldAttrEntity {

    private static final long serialVersionUID = 8657453737449436643L;

    /**
     * 批量查出的数据
     */
    private Map<String, Object> linkBusinessMap;

    /**
     * 需要分行导入的为1
     */
    private Integer needImportSeparately;

    /**
     * 重复得key
     */
    private List<String> repeatErrorKey;

    /**
     * 来自关联业务为1
     */
    private Integer formLinkBusiness;

    /**
     * 批量查出的数据
     */
    private Map<String, Object> tempLinkBusinessMap;
    /**
     * 父数据不为空
     */
    private Boolean subDataNotEmpty;

    private Map<String, MultiUnitItemPoJo> groupBaseUnitMap;

    /**
     * 父产品下所有子产品的pirce数据
     */
    private Map<Long , List<ProductUnitPriceEntity>> productUnitPriceEntityMap;

    /**
     * 订货单的收货地址
     */
    private Map<Long, List<ContractSubDataExt>> shippingAddressMap;
}
